package com.xiaomo.gitee.datamanager.dto.statistics;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Schema(name = "统计数据传输模型",description = "用于包装向前端发送的统计信息",title = "用于包装向前端发送的统计信息")
@Data
public class StatisticsDataDTO implements Serializable {

    @Schema(
            title = "name",
            name = "大类别名称",
            format = "string",
            example = "成都市",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String name;

    @Schema(
            title = "id",
            name = "大类别ID",
            format = "number",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private Long id;

    @Schema(
            title = "amount",
            name = "数量",
            description = "当前大类别所含的图片数量",
            format = "number",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private Long amount;

    @Serial
    private static final long serialVersionUID = 1L;
}
